/*
 * Copyright 2006-2007 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.sf.jstester.util;

/**
 * Environment especific Assert.<br>
 * It will delegate all its call to a JsAssert depending on the runtime
 * environment.
 * 
 * @author Andres Almiray <aalmiray@users.sourceforge.net>
 */
public class Assert {
   private static final JsAssert jsassert = JsTesterUtils.getAssert();

   public static void assertEquals( boolean expected, boolean actual ) {
      jsassert.assertEquals( expected, actual );
   }

   public static void assertEquals( byte expected, byte actual ) {
      jsassert.assertEquals( expected, actual );
   }

   public static void assertEquals( char expected, char actual ) {
      jsassert.assertEquals( expected, actual );
   }

   public static void assertEquals( double expected, double actual, double delta ) {
      jsassert.assertEquals( expected, actual, delta );
   }

   public static void assertEquals( float expected, float actual, float delta ) {
      jsassert.assertEquals( expected, actual, delta );
   }

   public static void assertEquals( int expected, int actual ) {
      jsassert.assertEquals( expected, actual );
   }

   public static void assertEquals( long expected, long actual ) {
      jsassert.assertEquals( expected, actual );
   }

   public static void assertEquals( Object expected, Object actual ) {
      jsassert.assertEquals( expected, actual );
   }

   public static void assertEquals( short expected, short actual ) {
      jsassert.assertEquals( expected, actual );
   }

   public static void assertEquals( String message, boolean expected, boolean actual ) {
      jsassert.assertEquals( message, expected, actual );
   }

   public static void assertEquals( String message, byte expected, byte actual ) {
      jsassert.assertEquals( message, expected, actual );
   }

   public static void assertEquals( String message, char expected, char actual ) {
      jsassert.assertEquals( message, expected, actual );
   }

   public static void assertEquals( String message, double expected, double actual, double delta ) {
      jsassert.assertEquals( message, expected, actual, delta );
   }

   public static void assertEquals( String message, float expected, float actual, float delta ) {
      jsassert.assertEquals( message, expected, actual, delta );
   }

   public static void assertEquals( String message, int expected, int actual ) {
      jsassert.assertEquals( message, expected, actual );
   }

   public static void assertEquals( String message, long expected, long actual ) {
      jsassert.assertEquals( message, expected, actual );
   }

   public static void assertEquals( String message, Object expected, Object actual ) {
      jsassert.assertEquals( message, expected, actual );
   }

   public static void assertEquals( String message, short expected, short actual ) {
      jsassert.assertEquals( message, expected, actual );
   }

   public static void assertEquals( String expected, String actual ) {
      jsassert.assertEquals( expected, actual );
   }

   public static void assertEquals( String message, String expected, String actual ) {
      jsassert.assertEquals( message, expected, actual );
   }

   public static void assertFalse( boolean condition ) {
      jsassert.assertFalse( condition );
   }

   public static void assertFalse( String message, boolean condition ) {
      jsassert.assertFalse( message, condition );
   }

   public static void assertNotNull( Object object ) {
      jsassert.assertNotNull( object );
   }

   public static void assertNotNull( String message, Object object ) {
      jsassert.assertNotNull( message, object );
   }

   public static void assertNotSame( Object expected, Object actual ) {
      jsassert.assertNotSame( expected, actual );
   }

   public static void assertNotSame( String message, Object expected, Object actual ) {
      jsassert.assertNotSame( message, expected, actual );
   }

   public static void assertNull( Object object ) {
      jsassert.assertNull( object );
   }

   public static void assertNull( String message, Object object ) {
      jsassert.assertNull( message, object );
   }

   public static void assertSame( Object expected, Object actual ) {
      jsassert.assertSame( expected, actual );
   }

   public static void assertSame( String message, Object expected, Object actual ) {
      jsassert.assertSame( message, expected, actual );
   }

   public static void assertTrue( boolean condition ) {
      jsassert.assertTrue( condition );
   }

   public static void assertTrue( String message, boolean condition ) {
      jsassert.assertTrue( message, condition );
   }

   public static void fail() {
      jsassert.fail();
   }

   public static void fail( String message ) {
      jsassert.fail( message );
   }
}